Created
August 3, 2017 18:35
-
-
Save winder/aed397eeb4de4e81e9cdaa57009290a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestListener implements MongoEventListener { | |
@Override | |
public void exportDocument(Document doc) { | |
System.out.println("Export: " + doc.toString()); | |
} | |
@Override | |
public void delete(Delete entry) { | |
System.out.println("Delete: " + entry.getId()); | |
} | |
@Override | |
public void insert(Insert entry) { | |
System.out.println("Delete: " + entry.getDocument().toString()); | |
} | |
@Override | |
public void update(Update entry) { | |
System.out.println("Update: " + entry.getDocument().toString()); | |
} | |
@Override | |
public void command(Command entry) { | |
System.out.println("Command: " + entry.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment