jet.server.api
Interface TempResultOwnerManager


public interface TempResultOwnerManager

Interface TempResultOwnerManager manages the owners of temporary results.


Method Summary
 boolean isOwner(java.lang.String owner, java.lang.String tempResult)
          Checks if an owner is the owner of the temporary result.
 void registerOwner(java.lang.String owner, java.lang.String tempResult)
          Registers the owner of a temporary result.
 void removeOwner(java.lang.String owner, java.lang.String tempResult)
          Removes the owner of the temporary result.
 void removeOwnersIfTimeout()
          Removes the temporary result owners if the timeout is reached.
 void setTimeout(long timeouts)
          Sets the timeouts of temporary result owner record in milliseconds.
 

Method Detail

setTimeout

void setTimeout(long timeouts)
Sets the timeouts of temporary result owner record in milliseconds. The temporary result owner record will be removed when the timeout is reached.

Parameters:
timeout - the timeouts of temporary result owner record in milliseconds.

registerOwner

void registerOwner(java.lang.String owner,
                   java.lang.String tempResult)
Registers the owner of a temporary result.

Parameters:
owner - the owner of the temporary result.
tempResult - the temporary result.

isOwner

boolean isOwner(java.lang.String owner,
                java.lang.String tempResult)
Checks if an owner is the owner of the temporary result.

Parameters:
owner - the owner.
tempResult - the temporary result.
Returns:
if the owner is the owner of the temporary result.

removeOwner

void removeOwner(java.lang.String owner,
                 java.lang.String tempResult)
Removes the owner of the temporary result.

Parameters:
owner - the owner of the temporary result.
tempResult - the temporary result.

removeOwnersIfTimeout

void removeOwnersIfTimeout()
Removes the temporary result owners if the timeout is reached.