public abstract class AbstractObjectManager<KEY_OWNER,KEY,VALUE> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
lockObj |
protected Map<KEY,VALUE> |
objMap |
| Constructor and Description |
|---|
AbstractObjectManager() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract VALUE |
create(KEY_OWNER keyOwner)
只会在锁的保护下执行
|
VALUE |
findByContainer(KEY_OWNER keyOwner) |
VALUE |
findByKey(KEY key) |
protected abstract KEY |
getKey(KEY_OWNER keyOwner) |
VALUE |
getOrCreate(KEY_OWNER keyOwner) |
Set<KEY> |
keys() |
Collection<VALUE> |
values() |
public Collection<VALUE> values()
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.