public interface Interaction
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings()
Clears all warnings reported by this Interaction.
|
void |
close()
Closes an interaction
|
Record |
execute(InteractionSpec spec,
Record input)
Executes the interaction specified by the InteractionSpec with the
specified input.
|
boolean |
execute(InteractionSpec spec,
Record input,
Record output)
Executes the interaction specified by the InteractionSpec with the
specified input.
|
Connection |
getConnection()
Gets the connection associated with this interaction.
|
ResourceWarning |
getWarnings()
Gets the first warning for this interaction.
|
void clearWarnings() throws ResourceException
ResourceException
- Thrown if operation fails.void close() throws ResourceException
ResourceException
- Thrown if operation fails.Record execute(InteractionSpec spec, Record input) throws ResourceException
spec
- Represents the target function on the underlying resource.input
- Input Record @returns Record Output if successful, null if
not.ResourceException
- Thrown if Interaction fails.boolean execute(InteractionSpec spec, Record input, Record output) throws ResourceException
spec
- Represents the target function on the underlying resource.input
- Input Recordoutput
- Output record @returns boolean True if successful, false if
notResourceException
- Thrown if Interaction fails.Connection getConnection()
ResourceWarning getWarnings() throws ResourceException
ResourceException
- Thrown if operation fails.Copyright © 2013 JBoss by Red Hat. All rights reserved.