Package com.easydesk.pipeline
Class DefaultPipelineData
java.lang.Object
com.easydesk.pipeline.DefaultPipelineData
- All Implemented Interfaces:
PipelineData,AutoCloseable
A PipelineData is a holder for data being passed from one Valve to the next. The detailed contract for a
Valve is included in the description of the invoke() method below.
- Author:
- Eric Pugh, Peter Courcoux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()DOCUMENT ME!voidclose()Put object back into PipelineService for recyclingGet the configured map of objects for the given key<T> TGet a value from the configured map of objects for the given keysvoidPut a configured map of objects into the pipeline data object
-
Constructor Details
-
DefaultPipelineData
public DefaultPipelineData()
-
-
Method Details
-
put
Put a configured map of objects into the pipeline data object- Specified by:
putin interfacePipelineData- Parameters:
key- the key classvalue- the value map
-
get
Get the configured map of objects for the given key- Specified by:
getin interfacePipelineData- Parameters:
key- the key class- Returns:
- the value map or null if no such key exists
-
get
Get a value from the configured map of objects for the given keys- Specified by:
getin interfacePipelineData- Type Parameters:
T- the type of the inner key- Parameters:
key- the key classinnerKey- the key into the value map- Returns:
- the inner value or null if no such keys exist
-
clear
public void clear()DOCUMENT ME!- Specified by:
clearin interfacePipelineData
-
close
Put object back into PipelineService for recycling- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-