remotemutex.java

来自「java版ace,java程序员值得一看」· Java 代码 · 共 29 行

JAVA
29
字号
package JACE.netsvcs.Token;

/**
 * Proxy used by clients for accessing a mutex at the token service.
 */
public class RemoteMutex extends RemoteLock
{
  /**
   * Constructor.
   *
   *@param tokenName name of the mutex to access
   *@param clientID identification of this client
   *@param host host of the token service
   *@param port port number of the token service
   */
  public RemoteMutex (String tokenName,
		      String clientID,
		      String host,
		      int port)
  {
    super (LockTypes.MUTEX,
	   0,
	   tokenName,
	   clientID,
	   host,
	   port);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?