After we have read the story, we will talk about it. Main clause: We will talk about it. Subordinate clause: After we have read the story. Type: Adverb.
In this case Hamlet's soliloquy serves the purpose of informing the audience of his intense negative feelings toward his mother's remarriage and highlighting the inner turmoil those feelings create within him.