Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class ConverterCollections.ConverterCacheEvent

    java.lang.Object
      java.util.EventObject
          com.tangosol.util.MapEvent
              com.tangosol.net.cache.CacheEvent
                  com.tangosol.util.ConverterCollections.ConverterCacheEvent

All Implemented Interfaces:
  java.io.Serializable

Enclosing class:
  ConverterCollections

    public static class ConverterCollections.ConverterCacheEvent

extends CacheEvent

A Converter CacheEvent views an underlying CacheEvent through a set of key and value Converters.

Field Summary
`protected BackingMapManagerContext` | `m_context` The BackingMapManagerContext to use for extracting binary values.
`protected Converter` | `m_convKey` The Converter to view the underlying CacheEvent's key.
`protected Converter` | `m_convVal` The Converter to view the underlying CacheEvent's value.
`protected CacheEvent` | `m_event` The underlying CacheEvent.

Fields inherited from class com.tangosol.net.cache.CacheEvent
`m_fSynthetic`

Fields inherited from class com.tangosol.util.MapEvent
`ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_nId, m_oKey, m_oValueNew, m_oValueOld`

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`ConverterCollections.ConverterCacheEvent(ObservableMap map, CacheEvent event, Converter convKey, Converter convVal)` Constructor.
`ConverterCollections.ConverterCacheEvent(ObservableMap map, CacheEvent event, Converter convKey, Converter convVal, BackingMapManagerContext context)` Construct a ConverterMapEvent.

Method Summary
`CacheEvent` | `getCacheEvent()` Return the underlying CacheEvent.
`BackingMapManagerContext` | `getContext()` Get the BackingMapManagerContext which is used to deserialize the underlying binary values.
`Converter` | `getConverterKeyUp()` Return the Converter used to view the underlying CacheEvent's key through.
`Converter` | `getConverterValueUp()` Return the Converter used to view the underlying CacheEvent's value through.
`java.lang.Object` | `getKey()` Return a key associated with this event.
`java.lang.Object` | `getNewValue()` Return a new value associated with this event.
`java.lang.Object` | `getOldValue()` Return an old value associated with this event.
`void` | `setNewValue(java.lang.Object oValue)` Set the cached converted new value associated with this event.
`void` | `setOldValue(java.lang.Object oValue)` Set the cached converted old value associated with this event.

Methods inherited from class com.tangosol.net.cache.CacheEvent
`getDescription, isSynthetic`

Methods inherited from class com.tangosol.util.MapEvent
`dispatch, dispatch, dispatch, getDescription, getId, getMap, getNewEntry, getOldEntry, toString`

Methods inherited from class java.util.EventObject
`getSource`

Field Detail

### m_event

    protected CacheEvent m_event

  The underlying CacheEvent.

### m_convKey

    protected Converter m_convKey

  The Converter to view the underlying CacheEvent's key.

### m_convVal

    protected Converter m_convVal

  The Converter to view the underlying CacheEvent's value.

### m_context

    protected BackingMapManagerContext m_context

  The BackingMapManagerContext to use for extracting binary values.

Constructor Detail

### ConverterCollections.ConverterCacheEvent

    public ConverterCollections.ConverterCacheEvent(ObservableMap map,
                                                    CacheEvent event,
                                                    Converter convKey,
                                                    Converter convVal)

  Constructor.

  Parameters:
    `event` - the underlying CacheEvent
    `map` - the new event's source
    `convKey` - the Converter to view the underlying CacheEvent's key
    `convVal` - the Converter to view the underlying CacheEvent's values

### ConverterCollections.ConverterCacheEvent

    public ConverterCollections.ConverterCacheEvent(ObservableMap map,
                                                    CacheEvent event,
                                                    Converter convKey,
                                                    Converter convVal,
                                                    BackingMapManagerContext context)

  Construct a ConverterMapEvent.

  Parameters:
    `event` - the underlying MapEvent
    `map` - the new event's source
    `convKey` - the Converter to view the underlying CacheEvent's key
    `convVal` - the Converter to view the underlying CacheEvent's values
    `context` - the BackingMapManagerContext necessary to emulate the BinaryEntry interface

Method Detail

### getKey

    public java.lang.Object getKey()

  Return a key associated with this event.

  Overrides:
    `getKey` in class `MapEvent`
  Returns:
    a key

### getOldValue

    public java.lang.Object getOldValue()

  Return an old value associated with this event.

  The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.

  Overrides:
    `getOldValue` in class `MapEvent`
  Returns:
    an old value

### getNewValue

    public java.lang.Object getNewValue()

  Return a new value associated with this event.

  The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.

  Overrides:
    `getNewValue` in class `MapEvent`
  Returns:
    a new value

### getCacheEvent

    public CacheEvent getCacheEvent()

  Return the underlying CacheEvent.

  Returns:
    the underlying CacheEvent

### getContext

    public BackingMapManagerContext getContext()

  Get the BackingMapManagerContext which is used to deserialize the underlying binary values.

  Returns:
    the BackingMapManagerContext

### getConverterKeyUp

    public Converter getConverterKeyUp()

  Return the Converter used to view the underlying CacheEvent's key through.

  Returns:
    the Converter from the underlying CacheEvent's key

### getConverterValueUp

    public Converter getConverterValueUp()

  Return the Converter used to view the underlying CacheEvent's value through.

  Returns:
    the Converter from the underlying CacheEvent's value

### setOldValue

    public void setOldValue(java.lang.Object oValue)

  Set the cached converted old value associated with this event.

  Parameters:
    `oValue` - the new converted "old" value

### setNewValue

    public void setNewValue(java.lang.Object oValue)

  Set the cached converted new value associated with this event.

  Parameters:
    `oValue` - the new converted "new" value

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.