org.smallmind.constellation.ephemeral
Class EphemeralHandle

java.lang.Object
  extended by org.smallmind.constellation.ephemeral.EphemeralHandle

public class EphemeralHandle
extends Object


Constructor Summary
EphemeralHandle(SmallMindComponent smallMindComponent, Logger logger, EphemeralKey ephemeralKey, String ephemeralClassName, int creationTimeout)
           
EphemeralHandle(SmallMindComponent smallMindComponent, Logger logger, EphemeralKey ephemeralKey, String ephemeralClassName, Long resultCreationTime, Long resultLastAccessTime, Integer resultTimeout, Boolean resultValidity)
           
 
Method Summary
 void bind(String key, Object data)
           
 void clear()
           
 Map<String,Object> getBindings()
           
 long getCreationTime()
           
 Ephemeral getEphemeral()
           
 EphemeralKey getEphemeralKey()
           
 long getLastAccessTime()
           
 int getTimeout()
           
 void invalidate(boolean cache)
           
 boolean isNew()
           
 boolean isValid()
           
 void logError(Exception exception)
           
 void remove()
           
 void setTimeout(int seconds)
           
 void touch()
           
 void unbind(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EphemeralHandle

public EphemeralHandle(SmallMindComponent smallMindComponent,
                       Logger logger,
                       EphemeralKey ephemeralKey,
                       String ephemeralClassName,
                       int creationTimeout)
                throws EphemeralCreationException
Throws:
EphemeralCreationException

EphemeralHandle

public EphemeralHandle(SmallMindComponent smallMindComponent,
                       Logger logger,
                       EphemeralKey ephemeralKey,
                       String ephemeralClassName,
                       Long resultCreationTime,
                       Long resultLastAccessTime,
                       Integer resultTimeout,
                       Boolean resultValidity)
                throws EphemeralCreationException
Throws:
EphemeralCreationException
Method Detail

getEphemeral

public Ephemeral getEphemeral()
                       throws EphemeralRecoveryException
Throws:
EphemeralRecoveryException

clear

public void clear()

remove

public void remove()

isValid

public boolean isValid()

invalidate

public void invalidate(boolean cache)

touch

public void touch()

getLastAccessTime

public long getLastAccessTime()

setTimeout

public void setTimeout(int seconds)

getTimeout

public int getTimeout()

isNew

public boolean isNew()

getEphemeralKey

public EphemeralKey getEphemeralKey()

getCreationTime

public long getCreationTime()

bind

public void bind(String key,
                 Object data)

unbind

public void unbind(String key)

getBindings

public Map<String,Object> getBindings()
                               throws EphemeralPersistenceException
Throws:
EphemeralPersistenceException

logError

public void logError(Exception exception)


Copyright © 2012. All Rights Reserved.