Builder class for DXEndpoint that supports additional configuration properties.
More...
#include <DXEndpoint.hpp>
|
|
| ~Builder () noexcept override |
| | Releases the GraalVM handle.
|
| |
| std::shared_ptr< Builder > | withName (const StringLike &name) |
| | Changes the name used to distinguish multiple endpoints in the same process (GraalVM Isolate) in logs and in other diagnostic means.
|
| |
| std::shared_ptr< Builder > | withRole (Role role) |
| | Sets role for the created DXEndpoint.
|
| |
| std::shared_ptr< Builder > | withProperty (const StringLike &key, const StringLike &value) |
| | Sets the specified property.
|
| |
| template<typename Properties> |
| std::shared_ptr< Builder > | withProperties (Properties &&properties) |
| | Sets all supported properties from the provided properties object.
|
| |
| bool | supportsProperty (const StringLike &key) const |
| | Checks if a property is supported.
|
| |
| std::shared_ptr< DXEndpoint > | build () |
| | Builds DXEndpoint instance.
|
| |
| template<typename T> |
| bool | is () const noexcept |
| | Checks that the pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides.
|
| |
| template<typename T> |
| std::shared_ptr< T > | sharedAs () noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T.
|
| |
| template<typename T> |
| std::shared_ptr< T > | sharedAs () const noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T.
|
| |
| virtual std::string | toString () const |
| | Returns a string representation of the current object.
|
| |
|
virtual | ~Entity () noexcept=default |
| | The default virtual d-tor.
|
| |
|
|
using | Ptr = std::shared_ptr<SharedEntity> |
| | The alias to a type of shared pointer to the SharedEntity object.
|
| |
| static auto | createShared (Args &&...args) |
| | Creates a smart pointer to an object.
|
| |
Builder class for DXEndpoint that supports additional configuration properties.
Some methods that are not marked noexcept may throw exceptions:
- Exceptions
-
◆ build()
| std::shared_ptr< DXEndpoint > DXEndpoint::Builder::build |
( |
| ) |
|
Builds DXEndpoint instance.
- Returns
- the created endpoint.
- Exceptions
-
◆ supportsProperty()
| bool DXEndpoint::Builder::supportsProperty |
( |
const StringLike & | key | ) |
const |
◆ withName()
Changes the name used to distinguish multiple endpoints in the same process (GraalVM Isolate) in logs and in other diagnostic means.
This is a shortcut for withProperty(NAME_PROPERTY, name)
- Parameters
-
- Returns
this endpoint builder.
- Exceptions
-
◆ withProperties()
template<typename Properties>
| std::shared_ptr< Builder > DXEndpoint::Builder::withProperties |
( |
Properties && | properties | ) |
|
|
inline |
Sets all supported properties from the provided properties object.
- Template Parameters
-
| Properties | The properties' type (std::map, std::unordered_map, etc.) |
- Parameters
-
| properties | The endpoint's properties |
- Returns
this endpoint builder.
- See also
- withProperty(const StringLike&, const StringLike&)
- Exceptions
-
References withProperty().
◆ withProperty()
Sets the specified property.
Unsupported properties are ignored.
- Parameters
-
| key | The endpoint's property key |
| value | The endpoint's property value |
- Returns
this endpoint builder.
- See also
- ::supportsProperty(const StringLike&)
- Exceptions
-
Referenced by withProperties().
◆ withRole()
Sets role for the created DXEndpoint.
The default role is FEED.
- Parameters
-
- Returns
this endpoint builder.
- Exceptions
-