Skip to content

Package: KapuaMessageFactory

KapuaMessageFactory

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: * Red Hat Inc
13: *******************************************************************************/
14: package org.eclipse.kapua.message;
15:
16: import org.eclipse.kapua.model.KapuaObjectFactory;
17:
18: /**
19: * {@link KapuaMessageFactory} definition.
20: *
21: * @since 1.0.0
22: */
23: public interface KapuaMessageFactory extends KapuaObjectFactory {
24:
25: /**
26: * Instantiates a new {@link KapuaMessage}
27: *
28: * @return The newly instantiated {@link KapuaMessage}
29: * @since 1.0.0
30: */
31: KapuaMessage newMessage();
32:
33: /**
34: * Instantiates a new {@link KapuaChannel}
35: *
36: * @return The newly instantiated {@link KapuaChannel}
37: * @since 1.0.0
38: */
39: KapuaChannel newChannel();
40:
41: /**
42: * Instantiates a new {@link KapuaPayload}
43: *
44: * @return The newly instantiated {@link KapuaPayload}
45: * @since 1.0.0
46: */
47: KapuaPayload newPayload();
48:
49: /**
50: * Instantiates a new {@link KapuaPosition}
51: *
52: * @return The newly instantiated {@link KapuaPosition}
53: * @since 1.0.0
54: */
55: KapuaPosition newPosition();
56: }