|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Suspendable
Suspendable may be implemented by a ResourceAdapter JavaBean if it supports suspend, resume or side-by-side versioning
| Field Summary | |
|---|---|
static int |
ALLUsed to indicate that INBOUND, OUTBOUND & WORK are to be suspended/resumed |
static int |
INBOUNDUsed to indicate that inbound communication is to be suspended/resumed |
static int |
OUTBOUNDUsed to indicate that outbound communication is to be suspended/resumed |
static int |
RESUMEMay be used to indicate a resume() operation |
static int |
SUSPENDMay be used to indicate a suspend() operation |
static int |
WORKUsed to indicate that submission of Work is to be suspended/resumed |
| Method Summary | |
|---|---|
abstract void |
init(ResourceAdapter ra, Properties props)Used by WLS to inform a ResourceAdapter that it is a new version of an already deployed resource adapter. |
abstract boolean |
isInboundSuspended(MessageEndpointFactory endptFactory)Used to determine whether the inbound activity is currently suspended for the given MessageEndpointFactory |
abstract boolean |
isSuspended(int type)Used to determine whether the specified type of activity is currently suspended. |
abstract void |
resume(int type, Properties props)Request to resume the activity specified. |
abstract void |
resumeInbound(MessageEndpointFactory endptFactory, Properties props)Request to resume the inbound activity on the given MessageEndpointFactory |
abstract void |
startVersioning(ResourceAdapter ra, Properties props)Used by WLS to indicate to the current version of this resource adapter that a new version of the resource adapter is being deployed. |
abstract boolean |
supportsInit()Used to determine if this resource adapter supports the init() method used for resource adapter versioning (side-by-side deployment) |
abstract boolean |
supportsSuspend(int type) |
abstract boolean |
supportsVersioning()Used to determine if this resource adapter supports the startVersioning() method used for resource adapter versioning (side-by-side deployment) |
abstract void |
suspend(int type, Properties props)Request to suspend the activity specified. |
abstract void |
suspendInbound(MessageEndpointFactory endptFactory, Properties props)Request to suspend the inbound activity on the given MessageEndpointFactory |
| Field Detail |
|---|
static final int INBOUND
static final int OUTBOUND
static final int WORK
static final int ALL
static final int SUSPEND
static final int RESUME
| Method Detail |
|---|
void suspend(int type,
Properties props)
throws ResourceException
type - 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 purposesResourceException - If the resource adapter can't complete the request
void suspendInbound(MessageEndpointFactory endptFactory,
Properties props)
throws ResourceException
endptFactory - the factory for message endpoints that is being suspendedprops - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the request
void resumeInbound(MessageEndpointFactory endptFactory,
Properties props)
throws ResourceException
endptFactory - the factory for message endpoints that is being resumedprops - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the request
void resume(int type,
Properties props)
throws ResourceException
type - 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 purposesResourceException - If the resource adapter can't complete the requestboolean supportsSuspend(int type)
type - 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 )boolean isSuspended(int type)
type - 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 )
boolean isInboundSuspended(MessageEndpointFactory endptFactory)
throws ResourceException
endptFactory - the endpoint factoryResourceExceptionboolean supportsInit()
boolean supportsVersioning()
void startVersioning(ResourceAdapter ra,
Properties props)
throws ResourceException
ra - The new ResourceAdapter JavaBeanprops - Properties associated with the versioning when it can be undeployedResourceException - If something goes wrong
void init(ResourceAdapter ra,
Properties props)
throws ResourceException
ra - The old version of the resource adapter that is currently runningprops - Properties associated with the versioning operationResourceException - If the init() fails.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||