Search in sources :

Example 1 with BuckEventExternalInterface

use of com.facebook.buck.event.external.events.BuckEventExternalInterface in project buck by facebook.

the class BuckEventHandler method onMessage.

@Override
public void onMessage(final String message) {
    final BuckEventExternalInterface buckEventExternalInterface;
    try {
        buckEventExternalInterface = mObjectMapper.readValue(message, BuckEventExternalInterface.class);
        mQueue.add(message, buckEventExternalInterface);
    } catch (IOException e) {
        e.printStackTrace();
    }
}
Also used : BuckEventExternalInterface(com.facebook.buck.event.external.events.BuckEventExternalInterface) IOException(java.io.IOException)

Example 2 with BuckEventExternalInterface

use of com.facebook.buck.event.external.events.BuckEventExternalInterface in project buck by facebook.

the class BuckEventsHandler method onMessage.

@Override
public void onMessage(final String message) {
    final BuckEventExternalInterface buckEventExternalInterface;
    try {
        buckEventExternalInterface = mObjectMapper.readValue(message, BuckEventExternalInterface.class);
        mQueue.add(message, buckEventExternalInterface);
    } catch (IOException e) {
        e.printStackTrace();
    }
}
Also used : BuckEventExternalInterface(com.facebook.buck.event.external.events.BuckEventExternalInterface) IOException(java.io.IOException)

Aggregations

BuckEventExternalInterface (com.facebook.buck.event.external.events.BuckEventExternalInterface)2 IOException (java.io.IOException)2