java.io.Serializable, javax.resource.spi.ResourceAdapter, Suspendablepublic class SuspendableAdapter extends java.lang.Object implements Suspendable, java.io.Serializable
| Modifier and Type | Method | Description |
|---|---|---|
void |
endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec) |
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
throws ResourceException
{
throw new NotSupportedException();
}
|
void |
endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec) |
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
{
}
|
javax.transaction.xa.XAResource[] |
getXAResources(javax.resource.spi.ActivationSpec[] spec) |
public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException
{
throw new NotSupportedException();
}
|
void |
init(javax.resource.spi.ResourceAdapter ra,
java.util.Properties props) |
public void init(ResourceAdapter ra, Properties props) throws ResourceException
{
}
|
boolean |
isInboundSuspended(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory) |
public boolean isInboundSuspended(MessageEndpointFactory endptFactory) throws ResourceException
{
return false;
}
|
boolean |
isSuspended(int type) |
public boolean isSuspended(int type)
{
return false;
}
|
void |
resume(int type,
java.util.Properties props) |
public void resume(int type, Properties props) throws ResourceException
{
}
|
void |
resumeInbound(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory,
java.util.Properties props) |
public void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
|
void |
start(javax.resource.spi.BootstrapContext context) |
public void start(BootstrapContext context) throws ResourceAdapterInternalException
{
}
|
void |
startVersioning(javax.resource.spi.ResourceAdapter ra,
java.util.Properties props) |
public void startVersioning(ResourceAdapter ra, Properties props) throws ResourceException
{
}
|
void |
stop() |
public void stop()
{
}
|
boolean |
supportsInit() |
public boolean supportsInit()
{
return false;
}
|
boolean |
supportsSuspend(int type) |
public boolean supportsSuspend(int type)
{
return false;
}
|
boolean |
supportsVersioning() |
public boolean supportsVersioning()
{
return false;
}
|
void |
suspend(int type,
java.util.Properties props) |
public void suspend(int type, Properties props) throws ResourceException
{
}
|
void |
suspendInbound(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory,
java.util.Properties props) |
public void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
|
public void start(javax.resource.spi.BootstrapContext context)
throws javax.resource.spi.ResourceAdapterInternalException
public void start(BootstrapContext context) throws ResourceAdapterInternalException
{
}
start in interface javax.resource.spi.ResourceAdapterjavax.resource.spi.ResourceAdapterInternalExceptionpublic void stop()
public void stop()
{
}
stop in interface javax.resource.spi.ResourceAdapterpublic void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
throws javax.resource.ResourceException
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
throws ResourceException
{
throw new NotSupportedException();
}
endpointActivation in interface javax.resource.spi.ResourceAdapterjavax.resource.ResourceExceptionpublic void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
{
}
endpointDeactivation in interface javax.resource.spi.ResourceAdapterpublic javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
throws javax.resource.ResourceException
public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException
{
throw new NotSupportedException();
}
getXAResources in interface javax.resource.spi.ResourceAdapterjavax.resource.ResourceExceptionpublic void suspend(int type,
java.util.Properties props)
throws javax.resource.ResourceException
public void suspend(int type, Properties props) throws ResourceException
{
}
suspend in interface Suspendabletype - An int from 1 to 7 specifying the type of suspension being
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )props - Optional Properties (or null) to be used for ResourceAdapter
specific purposesjavax.resource.ResourceException - If the resource adapter can't complete the
requestpublic void suspendInbound(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory,
java.util.Properties props)
throws javax.resource.ResourceException
public void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
suspendInbound in interface SuspendableendptFactory - the factory for message endpoints that is being
suspendedprops - Optional Properties (or null) to be used for ResourceAdapter
specific purposesjavax.resource.ResourceException - If the resource adapter can't complete the
requestpublic void resumeInbound(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory,
java.util.Properties props)
throws javax.resource.ResourceException
public void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
resumeInbound in interface SuspendableendptFactory - the factory for message endpoints that is being
resumedprops - Optional Properties (or null) to be used for ResourceAdapter
specific purposesjavax.resource.ResourceException - If the resource adapter can't complete the
requestpublic void resume(int type,
java.util.Properties props)
throws javax.resource.ResourceException
public void resume(int type, Properties props) throws ResourceException
{
}
resume in interface Suspendabletype - An int from 1 to 7 specifying the type of resume being
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )props - Optional Properties (or null) to be used for ResourceAdapter
specific purposesjavax.resource.ResourceException - If the resource adapter can't complete the
requestpublic boolean supportsSuspend(int type)
public boolean supportsSuspend(int type)
{
return false;
}
supportsSuspend in interface Suspendabletype - An int from 1 to 7 specifying the type of suspend this inquiry
is about (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )public boolean isSuspended(int type)
public boolean isSuspended(int type)
{
return false;
}
isSuspended in interface Suspendabletype - An int from 1 to 7 specifying the type of activity
requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of
one or more of these, or the value Suspendable.ALL )public boolean isInboundSuspended(javax.resource.spi.endpoint.MessageEndpointFactory endptFactory)
throws javax.resource.ResourceException
public boolean isInboundSuspended(MessageEndpointFactory endptFactory) throws ResourceException
{
return false;
}
isInboundSuspended in interface SuspendableendptFactory - the endpoint factoryjavax.resource.ResourceExceptionpublic boolean supportsInit()
public boolean supportsInit()
{
return false;
}
supportsInit in interface Suspendablepublic boolean supportsVersioning()
public boolean supportsVersioning()
{
return false;
}
supportsVersioning in interface Suspendablepublic void startVersioning(javax.resource.spi.ResourceAdapter ra,
java.util.Properties props)
throws javax.resource.ResourceException
public void startVersioning(ResourceAdapter ra, Properties props) throws ResourceException
{
}
startVersioning in interface Suspendablera - The new ResourceAdapter JavaBeanprops - Properties associated with the versioning
when it can be undeployedjavax.resource.ResourceException - If something goes wrongpublic void init(javax.resource.spi.ResourceAdapter ra,
java.util.Properties props)
throws javax.resource.ResourceException
public void init(ResourceAdapter ra, Properties props) throws ResourceException
{
}
init in interface Suspendablera - The old version of the resource adapter that is currently runningprops - Properties associated with the versioning operationjavax.resource.ResourceException - If the init() fails.