com.voidsearch.voidbase.apps.cache.containers
Class RegisteredOperations

java.lang.Object
  extended by com.voidsearch.voidbase.apps.cache.containers.RegisteredOperations

public class RegisteredOperations
extends java.lang.Object

Container of all registered operations and their behavior and locking for certain Cache handler


Field Summary
protected  java.util.HashMap<java.lang.String,CacheOperation> registeredOperations
           
 
Constructor Summary
RegisteredOperations()
          Creates a new instance of a RegisteredOperations
 
Method Summary
 java.lang.Boolean contains(java.lang.String key)
          Verifies if operation is registered
 CacheOperation get(java.lang.String key)
          Gets CacheOperation from registeredOperations container
 CacheLockType getLockType(java.lang.String operation)
          Gets a lock type for operation
 java.lang.Boolean isRegistered(CacheOperation operation)
          Verifies if operation is registered
 java.lang.Boolean isRegistered(java.lang.String operation)
          Verifies if operation is registered
 void put(java.lang.String key, CacheOperation operation)
          Puts CacheOperation in registeredOperations container
 java.lang.String toString()
          Returns a String from RegisteredOperations object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

registeredOperations

protected java.util.HashMap<java.lang.String,CacheOperation> registeredOperations
Constructor Detail

RegisteredOperations

public RegisteredOperations()
Creates a new instance of a RegisteredOperations

Method Detail

isRegistered

public java.lang.Boolean isRegistered(java.lang.String operation)
Verifies if operation is registered

Parameters:
operation -
Returns:
true if operation is registered and false if it's not

isRegistered

public java.lang.Boolean isRegistered(CacheOperation operation)
Verifies if operation is registered

Parameters:
operation -
Returns:
true if operation is registered and false if it's not

get

public CacheOperation get(java.lang.String key)
Gets CacheOperation from registeredOperations container

Parameters:
key -
Returns:
a CacheOperation object from registeredOperations in operation is registered

put

public void put(java.lang.String key,
                CacheOperation operation)
Puts CacheOperation in registeredOperations container

Parameters:
key -
operation -

contains

public java.lang.Boolean contains(java.lang.String key)
Verifies if operation is registered

Parameters:
key -
Returns:
true if operation is registered and false if it's not

getLockType

public CacheLockType getLockType(java.lang.String operation)
Gets a lock type for operation

Parameters:
operation -
Returns:
a lock type for operation

toString

public java.lang.String toString()
Returns a String from RegisteredOperations object

Overrides:
toString in class java.lang.Object
Returns:
a String from RegisteredOperations object


Copyright © 2009. All Rights Reserved.