Code example for Interner

Methods: intern

0
  public static WorkflowLock lock( final AccountFullName accountFullName, final String domainUuid, final String runId ) {
    return lock( accountFullName.getAccountNumber( ), domainUuid, runId );
  } 
 
  public static WorkflowLock lock( final String accountNumber, final String domainUuid, final String runId ) {
    return workflowLockInterner.intern( new WorkflowLock( accountNumber, domainUuid, runId ) ).lock( );
  } 
 
  WorkflowLock( final String accountNumber, final String domainUuid, final String runId ) {
    this.accountNumber = accountNumber;
    this.domainUuid = domainUuid;
    this.runId = runId;
  } 
 
  public WorkflowLock lock( ) { 
    lock.lock( );
    return this;
  } 
 
  @Override