Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[messaging-dev] How about default methods on CompletionListener?

Greetings experts,

Might there be times when the Java default methods on interfaces might be handy? For example,

// I don't care about exceptions
producer.send(message, new CompletionListener() { 
  public void onCompletion(Message m) {
     // do something 
  }
});

Just a small thing, but still maybe useful.

Ed

Back to the top