Class AsyncResultHandlerFactory
- java.lang.Object
-
- org.forgerock.openam.cts.impl.queue.AsyncResultHandlerFactory
-
- All Implemented Interfaces:
ResultHandlerFactory
public class AsyncResultHandlerFactory extends Object implements ResultHandlerFactory
Implementation provides an appropriate asynchronous ResultHandler implementation based on the type requested.
-
-
Constructor Summary
Constructors Constructor Description AsyncResultHandlerFactory(QueueConfiguration config, Debug debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultHandler<Token,CoreTokenException>getCreateHandler()ResultHandler<PartialToken,CoreTokenException>getDeleteHandler()ResultHandler<Collection<PartialToken>,CoreTokenException>getDeleteOnQueryHandler()Returns aResultHandlerthat performs a delete operation on the query's results.ResultHandler<Collection<PartialToken>,CoreTokenException>getPartialQueryHandler()ResultHandler<Collection<Token>,CoreTokenException>getQueryHandler()ResultHandler<Token,CoreTokenException>getReadHandler()ResultHandler<Token,CoreTokenException>getUpdateHandler()
-
-
-
Constructor Detail
-
AsyncResultHandlerFactory
@Inject public AsyncResultHandlerFactory(QueueConfiguration config, @Named("amCTSAsync") Debug debug)
- Parameters:
config- Required for queue configuration.debug- Non null debug instance for debugging.
-
-
Method Detail
-
getCreateHandler
public ResultHandler<Token,CoreTokenException> getCreateHandler()
- Specified by:
getCreateHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getReadHandler
public ResultHandler<Token,CoreTokenException> getReadHandler()
- Specified by:
getReadHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getUpdateHandler
public ResultHandler<Token,CoreTokenException> getUpdateHandler()
- Specified by:
getUpdateHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getDeleteHandler
public ResultHandler<PartialToken,CoreTokenException> getDeleteHandler()
- Specified by:
getDeleteHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getQueryHandler
public ResultHandler<Collection<Token>,CoreTokenException> getQueryHandler()
- Specified by:
getQueryHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getPartialQueryHandler
public ResultHandler<Collection<PartialToken>,CoreTokenException> getPartialQueryHandler()
- Specified by:
getPartialQueryHandlerin interfaceResultHandlerFactory- Returns:
- Non null result handler.
-
getDeleteOnQueryHandler
public ResultHandler<Collection<PartialToken>,CoreTokenException> getDeleteOnQueryHandler()
Description copied from interface:ResultHandlerFactoryReturns aResultHandlerthat performs a delete operation on the query's results.- Specified by:
getDeleteOnQueryHandlerin interfaceResultHandlerFactory- Returns:
- Handler suitable for delete on query operation.
-
-