com.oracle.coherence.patterns.command
Interface ContextsManager

All Known Implementing Classes:
DefaultContextsManager

public interface ContextsManager

A ContextsManager provides the mechanism by which we may register and manage Contexts.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver

Method Summary
 Object extractValueFromContext(Identifier identifier, com.tangosol.util.ValueExtractor valueExtractor)
          Extracts a value from the most recently updated version of the Context with the provided ValueExtractor.
 Context getContext(Identifier identifier)
          Returns the most recent updated version of the Context with the specified Identifier.
 Identifier registerContext(Context context)
          Registers a Context using a DefaultContextConfiguration.
 Identifier registerContext(Context context, ContextConfiguration contextConfiguration)
          Registers a Context with a specified ContextConfiguration.
 Identifier registerContext(Identifier identifier, Context context)
          Registers a Context with the specified Identifier using a DefaultContextConfiguration.
 Identifier registerContext(Identifier identifier, Context context, ContextConfiguration contextConfiguration)
          Registers a Context with the specified Identifier and ContextConfiguration.
 Identifier registerContext(String contextName, Context context)
          Registers a Context with the specified contextName using a DefaultContextConfiguration.
 Identifier registerContext(String contextName, Context context, ContextConfiguration contextConfiguration)
          Registers a Context with the specified contextName and ContextConfiguration.
 

Method Detail

registerContext

Identifier registerContext(Identifier identifier,
                           Context context,
                           ContextConfiguration contextConfiguration)
Registers a Context with the specified Identifier and ContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
identifier -
context -
contextConfiguration -

registerContext

Identifier registerContext(Identifier identifier,
                           Context context)
Registers a Context with the specified Identifier using a DefaultContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
identifier -
context -

registerContext

Identifier registerContext(String contextName,
                           Context context,
                           ContextConfiguration contextConfiguration)
Registers a Context with the specified contextName and ContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
contextName -
context -
contextConfiguration -

registerContext

Identifier registerContext(String contextName,
                           Context context)
Registers a Context with the specified contextName using a DefaultContextConfiguration. The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
contextName -
context -

registerContext

Identifier registerContext(Context context,
                           ContextConfiguration contextConfiguration)
Registers a Context with a specified ContextConfiguration.

NOTE: A unique Identifier will be generated for the Context.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
context -
contextConfiguration -

registerContext

Identifier registerContext(Context context)
Registers a Context using a DefaultContextConfiguration.

NOTE: A unique Identifier will be generated for the Context.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Parameters:
context -

getContext

Context getContext(Identifier identifier)
Returns the most recent updated version of the Context with the specified Identifier.

Parameters:
identifier -

extractValueFromContext

Object extractValueFromContext(Identifier identifier,
                               com.tangosol.util.ValueExtractor valueExtractor)
Extracts a value from the most recently updated version of the Context with the provided ValueExtractor.

Parameters:
identifier -
valueExtractor -


Copyright © 2016. All rights reserved.