Class AbstractModelPortMetadata

    • Constructor Detail

      • AbstractModelPortMetadata

        protected AbstractModelPortMetadata​(ModelStorageHandler<?> storageHandler,
                                            ModelMergeHandler<?> mergeHandler)
        Creates a model port metadata
        Parameters:
        storageHandler - the storage handle for this model class. Must be non-null
        mergeHandler - the merge handler. this is optional and should only be set on inbound (required) metadata.
    • Method Detail

      • getModelClass

        public final Class<?> getModelClass()
        Returns the model's java type.
        Returns:
        the model's java type
      • getStorageHandler

        public final ModelStorageHandler<?> getStorageHandler()
        Returns the storage handler for storing models of this type.
        Returns:
        the storage handler for storing models of this type.
      • getMergeHandler

        public final ModelMergeHandler<?> getMergeHandler()
        Returns the merge handler used to merge model partitions. This is optional and should only be set on inbound (required) metadata.
        Returns:
        the merge handler used to merge model partitions
      • withMergeHandler

        protected abstract AbstractModelPortMetadata withMergeHandler​(ModelMergeHandler<?> mergeHandler)
        Subclasses override to return a metadata, equivalent to this, with the specified merge handler.
        Parameters:
        mergeHandler - the merge handle
        Returns:
        a new metadata, equivalent to this, with the specified merge handler