public class ContextFactoryImple extends Object implements ContextFactory, LocalFactory
Modifier and Type | Class and Description |
---|---|
class |
ContextFactoryImple.BridgeTxData
class used to return data required to manage a bridged to subordinate transaction
|
Constructor and Description |
---|
ContextFactoryImple() |
Modifier and Type | Method and Description |
---|---|
CoordinationContext |
create(String coordinationTypeURI,
Long expires,
CoordinationContextType currentContext,
boolean isSecure)
Creates a coordination context.
|
ContextFactoryImple.BridgeTxData |
createBridgedTransaction(String subordinateType,
Long expires,
boolean isSecure)
create a bridged to subordinate WS-AT 1.1 transaction, associate it with the registrar and create and return
a coordination context for it.
|
Object |
createSubordinate()
Create a new subordinate coordinator instance with the default subordinate type.
|
Object |
createSubordinate(String subordinateType)
Create a new subordinate coordinator instance with the supplied subordinate type.
|
void |
install(String coordinationTypeURI)
Called when a context factory is added to a context factory mapper.
|
RegistrarImple |
registrar() |
void |
uninstall(String coordinationTypeURI)
Called when a context factory is removed from a context factory mapper.
|
public void install(String coordinationTypeURI)
install
in interface ContextFactory
coordinationTypeURI
- the coordination type uripublic CoordinationContext create(String coordinationTypeURI, Long expires, CoordinationContextType currentContext, boolean isSecure) throws InvalidCreateParametersException
create
in interface ContextFactory
coordinationTypeURI
- the coordination type uriexpires
- the expire date/time for the returned context, can be nullcurrentContext
- the current context, can be nullInvalidCreateParametersException
- if a parameter passed is invalid this activity identifier.public ContextFactoryImple.BridgeTxData createBridgedTransaction(String subordinateType, Long expires, boolean isSecure)
subordinateType
- a unique string which groups subordinates for the benefit of their parent tx/app and
allows them to be identified and retrieved as a group during recoveryexpires
- the timeout for the bridged to AT transactionisSecure
- true if the registration cooridnator URL should use a secure address, otherwise false.public void uninstall(String coordinationTypeURI)
uninstall
in interface ContextFactory
coordinationTypeURI
- the coordination type uripublic final Object createSubordinate() throws NoActivityException, InvalidProtocolException, SystemException
LocalFactory
createSubordinate
in interface LocalFactory
NoActivityException
InvalidProtocolException
SystemException
public final Object createSubordinate(String subordinateType) throws NoActivityException, InvalidProtocolException, SystemException
LocalFactory
createSubordinate
in interface LocalFactory
NoActivityException
InvalidProtocolException
SystemException
public final RegistrarImple registrar()
Copyright © 2018 JBoss by Red Hat. All rights reserved.