インタフェース SLockable
- すべてのスーパーインタフェース:
Unlockable
- 既知のサブインタフェースのリスト:
SArrayNode,SBase<T>,SBoolean,SClass<T>,SContainer<V,,P> SDouble,SFloat,SInteger,SJsonNode,SListContainer<V>,SLong,SMapContainer<V>,SMovableListContainer<V>,SNavigableMapContainer<V>,SNumber<T>,SObjectNode,SQueueContainer<V>,SScalar<T>,SString
- 既知の実装クラスのリスト:
SArrayNodeImpl,SBaseImpl,SBooleanImpl,SClassImpl,SDoubleImpl,SFloatImpl,SIntegerImpl,SJsonNodeImpl,SList,SListImpl,SLongImpl,SMap,SMapImpl,SMovableList,SMovableListImpl,SNavigableMap,SNavigableMapImpl,SNumberImpl,SObjectNodeImpl,SQueue,SQueueImpl,SROQueue,SStringImpl
Provides lock/unlock functions.
-
メソッドの詳細
-
lock
Unlocker lock()Locks this instance.- 戻り値:
Unlockerinstance for unlocking this lock
-
tryLock
boolean tryLock()Tries to lock this instance.- 戻り値:
- true if succeeded
-
tryLock
Tries to lock this instance.- パラメータ:
timeout- the timeout for this trialunit- the unit of the timeout- 戻り値:
- true if succeeded
-
isLocked
boolean isLocked()Returns true if this instance is locked.- 戻り値:
- true if this instance is locked.
-
unlock
void unlock()Unlocks this instance.- 定義:
unlockインタフェース内Unlockable
-
unlock
Unlocks this instance.- パラメータ:
origin- the origin of the event
-