Java Code Examples for play.libs.F#Callback
The following examples show how to use
play.libs.F#Callback .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockInputWebSocket.java From htwplus with MIT License | 4 votes |
@Override public void onMessage(F.Callback<JsonNode> callback) { messageListeners.add(callback); }
Example 2
Source File: MockInputWebSocket.java From htwplus with MIT License | 4 votes |
public void write(JsonNode data) throws Throwable { for (F.Callback<JsonNode> listener : messageListeners) listener.invoke(data); }