Class 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

      Constructors 
      Constructor Description
      StreamInvalidLockException()
      Constructs an StreamInvalidLockException with null as its error detail message.
      StreamInvalidLockException​(int errorCode, java.lang.String reason, java.lang.String stackTrace)  
      StreamInvalidLockException​(java.lang.String s)
      Constructs an StreamInvalidLockException with the specified detail message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, 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.
      • StreamInvalidLockException

        public StreamInvalidLockException​(int errorCode,
                                          java.lang.String reason,
                                          java.lang.String stackTrace)