coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Introduce the concept of a CommencedListener for RemoteExecutors #196

Closed brianoliver closed 9 years ago

brianoliver commented 9 years ago

While the RemoteExecutor.submit(...) methods always perform the submissions asynchronously, there are certain circumstances when an application may like to know when/if a submission was successful, and perhaps even assert that it was successful.

To do this we need to make a slight enhancement to the RemoteExecutor interface (and JavaApplications that implement it) so that we can additionally supply a CommencedListener.

interface CommencedListener <T> extends ExceptionListener
{
/**
* Called when a submission has been commenced processing.
* (note: there's no guarantee it will complete)
*/
public void onCommenced(T submission);
brianoliver commented 9 years ago

@brianoliver said: There's no real way to guarantee the delivery of this event and hence it's somewhat misleading to provide this facility.

For now we won't work on providing it until there's a clear way of providing such feedback

brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-196

brianoliver commented 9 years ago

Reported by @brianoliver

brianoliver commented 9 years ago

Marked as won't fix by @brianoliver on Wednesday, November 19th 2014, 12:51:25 pm