de.esprit.netsuite.server.lock

## Interface RemoteLockable

- All Known Subinterfaces:
    AliveBusinessObject<C,S,A>
  All Known Implementing Classes:
    AbstractABO, AbstractDBRecordABO, AbstractLoadMeterABO, AbstractPersistentABO, AbstractSingletonABO, ClientMeterABO, CoServerConnectionABO, MessageMeterABO, RequestMeterABO, ServerStatisticABO, SimpleTrackABO, TankABO, TaskMeterABO

      public interface RemoteLockable

  This interface defines methods for being lockable with a `ResourceLock`
  Author:
    Rainer Buesch

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getResourceName()` Returns the resource name being used for a server side `ResourceLock`
    `ResourceType` | `getResourceType()` Returns the resource type being used for a server side `ResourceLock`
    `boolean` | `isLockedByMe()` Tells whether this Instance is holding an exclusive ResourceLock on the server
    `void` | `setLocked(boolean state)` Fetches an exclusive ResourceLock from the server

- - ### Method Detail

    - #### getResourceName

          java.lang.String getResourceName()

      Returns the resource name being used for a server side `ResourceLock`

    - #### getResourceType

          ResourceType getResourceType()

      Returns the resource type being used for a server side `ResourceLock`

    - #### setLocked

          void setLocked(boolean state)
                         throws java.lang.Exception

      Fetches an exclusive ResourceLock from the server
      Throws:
        `java.lang.Exception`

    - #### isLockedByMe

          boolean isLockedByMe()

      Tells whether this Instance is holding an exclusive ResourceLock on the server

Copyright © 2014 EsprIT-Systems. All Rights Reserved.