O'Reilly logo

Getting Started with Oracle Event Processing 11g by Lloyd Williams, Robin J. Smith, Alexandre Alves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using caches as event sources and sinks

Besides using a cache for contextual data, another good use is to use it as the supplier of input data or as the final event sink for processed results.

The Oracle Coherence cache has a simple way for you to listen for changes that occur. By implementing a Map Listener interface, you can receive data into your OEP application and then connect a channel so that it acts similar to how an input adapter would.

At the end of an EPN, you could use a cache as the result sink. This provides a low latency way to output your events.

First, let's look at using the cache in place of an input adapter to supply events to your application as an event source. You need to set up the caching system as described at the beginning ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required