Class TransactionSharedObject

java.lang.Object
org.eclipse.ecf.core.sharedobject.BaseSharedObject
org.eclipse.ecf.core.sharedobject.TransactionSharedObject
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IIdentifiable, ISharedObject

public class TransactionSharedObject extends BaseSharedObject
Superclass for shared object classes that replicate themselves transactionally.
  • Field Details

  • Constructor Details

    • TransactionSharedObject

      public TransactionSharedObject()
    • TransactionSharedObject

      public TransactionSharedObject(int timeout)
    • TransactionSharedObject

      public TransactionSharedObject(ISharedObjectTransactionConfig config)
      Construct instance. The config parameter, if given, is used to configure the transactional replication of instances or subclass instances. If the config parameter is null, no replication messaging will occur and only host instance of object will be created.
      Parameters:
      config -
  • Method Details

    • initialize

      protected void initialize() throws SharedObjectInitException
      Description copied from class: BaseSharedObject
      Initialize this shared object. Subclasses may override as appropriate to define custom initialization behavior. If initialization should fail, then a SharedObjectInitException should be thrown by implementing code. Also, subclasses overriding this method should call super.initialize() before running their own code.
      Overrides:
      initialize in class BaseSharedObject
      Throws:
      SharedObjectInitException - if initialization should throw
    • getAdapter

      public Object getAdapter(Class clazz)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
      Overrides:
      getAdapter in class BaseSharedObject