Package com.caucho.env.lock

Examples of com.caucho.env.lock.LockService


  }

  private void initServer()
    throws ConfigException
  {
    LockService lockService = LockService.getCurrent();

    if (lockService == null) {
      throw new ConfigException(L.l("'{0}' cannot be initialized because it is not in a Resin environment\n  {1}",
                                    getClass().getSimpleName(),
                                    Thread.currentThread().getContextClassLoader()));
    }

    _manager = lockService.getManager();

    if (_manager == null)
      throw new IllegalStateException("distributed lock manager not available");
  }
View Full Code Here

TOP

Related Classes of com.caucho.env.lock.LockService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.