Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mom4j.mstore
Interface Store  view Store download Store.java


public interface Store


Method Summary
 void delete(java.lang.String sessionId, StoreHandle handle)
           
 StoreHandle getEldest(java.lang.String destination)
          Returns the eldest, non locked entry.
 StoreHandle getLatest(java.lang.String destination)
          Returns the eldest, non locked entry.
 void lock(java.lang.String sessionId, StoreHandle handle)
          Can only be called from within a transaction.
 java.io.InputStream read(StoreHandle handle)
          Read outside a transaction.
 java.io.InputStream read(java.lang.String sessionId, StoreHandle handle)
           
 void txBegin(java.lang.String sessionId)
           
 void txCommit(java.lang.String sessionId)
           
 boolean txInProgress(java.lang.String sessionId)
           
 void txRollback(java.lang.String sessionId)
           
 StoreHandle write(java.lang.String sessionId, java.lang.String destination, long prio, java.io.InputStream in)
           
 

Method Detail

txBegin

public void txBegin(java.lang.String sessionId)

txCommit

public void txCommit(java.lang.String sessionId)

txRollback

public void txRollback(java.lang.String sessionId)

txInProgress

public boolean txInProgress(java.lang.String sessionId)

write

public StoreHandle write(java.lang.String sessionId,
                         java.lang.String destination,
                         long prio,
                         java.io.InputStream in)
                  throws java.io.IOException

read

public java.io.InputStream read(StoreHandle handle)
                         throws java.io.IOException
Read outside a transaction.


read

public java.io.InputStream read(java.lang.String sessionId,
                                StoreHandle handle)
                         throws java.io.IOException

delete

public void delete(java.lang.String sessionId,
                   StoreHandle handle)
            throws java.io.IOException

getEldest

public StoreHandle getEldest(java.lang.String destination)
                      throws java.io.IOException
Returns the eldest, non locked entry.


getLatest

public StoreHandle getLatest(java.lang.String destination)
                      throws java.io.IOException
Returns the eldest, non locked entry.


lock

public void lock(java.lang.String sessionId,
                 StoreHandle handle)
          throws LockException,
                 java.io.IOException
Can only be called from within a transaction.