Package org.frankframework.senders
Class IsolatedServiceCaller
java.lang.Object
org.frankframework.senders.IsolatedServiceCaller
Helper class for
IbisLocalSender
that wraps around ServiceClient
implementation to make calls to a local Ibis adapter in a separate thread.- Since:
- 4.3
- Author:
- Gerrit van Brakel
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
callServiceAsynchronous
(ServiceClient service, Message message, PipeLineSession session, ThreadLifeCycleEventListener<?> threadLifeCycleEventListener) callServiceIsolated
(ServiceClient service, Message message, PipeLineSession session, ThreadLifeCycleEventListener<?> threadLifeCycleEventListener) org.springframework.core.task.TaskExecutor
The thread-pool for spawning threads, injected by Springvoid
setTaskExecutor
(org.springframework.core.task.TaskExecutor taskExecutor) The thread-pool for spawning threads, injected by Spring
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
IsolatedServiceCaller
public IsolatedServiceCaller()
-
-
Method Details
-
callServiceAsynchronous
public void callServiceAsynchronous(ServiceClient service, Message message, PipeLineSession session, ThreadLifeCycleEventListener<?> threadLifeCycleEventListener) throws IOException - Throws:
IOException
-
callServiceIsolated
public SenderResult callServiceIsolated(ServiceClient service, Message message, PipeLineSession session, ThreadLifeCycleEventListener<?> threadLifeCycleEventListener) throws ListenerException, IOException - Throws:
ListenerException
IOException
-
setTaskExecutor
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) The thread-pool for spawning threads, injected by Spring -
getTaskExecutor
public org.springframework.core.task.TaskExecutor getTaskExecutor()The thread-pool for spawning threads, injected by Spring
-