Changeset 11e00ba for core/java


Ignore:
Timestamp:
Jul 4, 2018 4:09:11 PM (2 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
40b3097
Parents:
d42a467
Message:

move TryCache? to core

File:
1 moved

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/TryCache.java

    rd42a467 r11e00ba  
    1 package net.i2p.router.util;
     1package net.i2p.util;
    22
    33import java.util.ArrayList;
     
    4242     * @return a cached or newly created item from this cache
    4343     */
    44     public T tryAcquire() {
     44    public T acquire() {
    4545        T rv = null;
    4646        if (lock.tryLock()) {
     
    6565     * another thread.
    6666     */
    67     public void tryRelease(T item) {
     67    public void release(T item) {
    6868        if (lock.tryLock()) {
    6969            try {
Note: See TracChangeset for help on using the changeset viewer.