com.alachisoft.jvcache.runtime.exceptions
Class StreamInvalidLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.alachisoft.jvcache.runtime.exceptions.CacheException
              extended by com.alachisoft.jvcache.runtime.exceptions.StreamException
                  extended by com.alachisoft.jvcache.runtime.exceptions.StreamInvalidLockException
All Implemented Interfaces:
java.io.Serializable

public class StreamInvalidLockException
extends StreamException

StreamInvalidLockException is thrown if the current lock handle becomes invalid. CacheStream opened for reading or writing mode acquires read or writer lock. Suppose there are two cache clients. First opens stream for either reading/writing. Before first client closes the stream, it is removed from the cache due to expiration or eviction. Now at this moment second client opens a fresh stream. If first client performs any operation on the stream, his lock handle becomes inavlid and StreamInvalidLockException is thrown.

See Also:
Serialized Form

Constructor Summary
StreamInvalidLockException()
          Constructs an StreamInvalidLockException with null as its error detail message.
StreamInvalidLockException(java.lang.String s)
          Constructs an StreamInvalidLockException with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamInvalidLockException

public StreamInvalidLockException()
Constructs an StreamInvalidLockException with null as its error detail message.


StreamInvalidLockException

public StreamInvalidLockException(java.lang.String s)
Constructs an StreamInvalidLockException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.

Parameters:
s - the detail message.