Name: ap-event-lib
Owner: Topcoder
Description: Event Framework Library
Created: 2015-03-16 16:20:43.0
Updated: 2016-12-04 06:13:21.0
Pushed: 2015-06-13 02:42:15.0
Homepage: null
Size: 370
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Appirio Microservices should follow this model for asnychronous notification of events via a raw json payload. This library provides a Java implementation for our standard service stack.
Provide AWS credentials in ~/.aws/credentials (where ~ is home directory of user running service)
_IAM_username]
access_key_id = BLAHBLAHBLAH
secret_access_key = blahBlahBlahBlahBlah
rt com.appirio.event.Topic;
rt com.appirio.event.Publisher;
rt com.appirio.event.Subscriber;
ic class TestModel {
private String testString;
public TestModel() {
}
public TestModel(String testString) {
this.testString = testString;
}
public String getTestString() {
return testString;
}
isher pub = new Publisher("PublisherAppName", "TopicName");
criber sub = new Subscriber("PublisherAppName", "TopicName", "SubscriberAppName");
Publish(new TestModel("hello"));
ng json = sub.getMessages()[0];
r
Model testReceived = (TestModel) sub.getItems(TestModel.class)[0];