Class ClusteredProperties

    • Field Detail

      • m_sTaskId

        protected String m_sTaskId
        The Task ID.
      • m_service

        protected com.tangosol.net.CacheService m_service
        The CacheService used by the Task, hence the property cache.
    • Constructor Detail

      • ClusteredProperties

        public ClusteredProperties()
        Constructs an ClusteredProperties (required for serialization).
      • ClusteredProperties

        public ClusteredProperties​(String sTaskId,
                                   com.tangosol.net.CacheService service)
        Constructs a ClusteredProperties given the task ID and cache service.
        Parameters:
        sTaskId - the Task ID
        service - the CacheService used by the Task
      • ClusteredProperties

        public ClusteredProperties​(String sTaskId,
                                   com.tangosol.net.CacheService service,
                                   TaskProperties properties)
        Constructs a ClusteredProperties given the task ID, cache service, and initial properties.
        Parameters:
        sTaskId - the Task ID
        service - the CacheService used by the Task
        properties - the properties to initialize
    • Method Detail

      • get

        public <V extends Serializable> V get​(String sKey)
        Description copied from interface: Task.Properties
        Get the property of a given key.
        Specified by:
        get in interface Task.Properties
        Type Parameters:
        V - the value type of the property
        Parameters:
        sKey - the key of the property
        Returns:
        the value of the property
      • put

        public <V extends Serializable> V put​(String sKey,
                                              V value)
        Description copied from interface: Task.Properties
        Put a property with the given name and value.
        Specified by:
        put in interface Task.Properties
        Type Parameters:
        V - the value type of the property
        Parameters:
        sKey - the key of the property
        value - the value of the property
        Returns:
        the previous value of the property or null if it's a new property
      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • readExternal

        public void readExternal​(com.tangosol.io.pof.PofReader in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(com.tangosol.io.pof.PofWriter out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • getCacheService

        protected com.tangosol.net.CacheService getCacheService()
        Return the CacheService used by this executor service.
        Returns:
        the CacheService used by this executor service