Class LockByKey<T>

java.lang.Object
cool.scx.common.lock.LockByKey<T>
Type Parameters:
T - KEY
All Implemented Interfaces:
ILockByKey<T>

public final class LockByKey<T> extends Object implements ILockByKey<T>
根据 Key 进行锁 , 使用 Semaphore 以支持多线程的 访问
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • LockByKey

      public LockByKey()
    • LockByKey

      public LockByKey(Function<T, Semaphore> semaphoreBuilder)
  • Method Details